import { defineStore } from 'pinia';

interface ParamStore {
    ifShowTaskModule: boolean;
}

export const useParamStore = defineStore('ParamStore', {
    state: (): ParamStore => ({
        ifShowTaskModule: false, // 是否启用任务管理
    }),
    actions: {
        setShowTaskModule(e: boolean = false) {
            this.ifShowTaskModule = e;
            uni.setStorageSync('taskModuleParam', e);
        }
    },
});
